package com.glacier.cloud.product.entity.dataobject;

import com.glacier.framework.component.dal.dataobject.BaseDo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * date 2023-12-27 21:45
 * 商品库存表
 * @author glacier
 * @version 1.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ProductSkuDo extends BaseDo {

    /**
    * 商品ID
    */
    private Long productId;

    /**
    * 价格
    */
    private BigDecimal price;

    /**
    * 库存
    */
    private Integer stock;

    /**
    * 锁定库存
    */
    private Integer lockStock;

    /**
    * 图片
    */
    private String pic;

    /**
    * 属性，JSON 格式
    */
    private String attribute;
}
